<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <div class="main">
        <div class="item">111</div>
        <!-- <div class="item">222</div> -->
        <!-- <div class="item">333</div> -->
        <!-- <div class="item">444</div>
        <div class="item">555</div>
        <div class="item">666</div>
        <div class="item">777</div>
        <div class="item">888</div> -->
    </div>
    <ul class="nav">
        <li>aaaaa</li>
        <li>bbbbb</li>
        <li>ccccc</li>
        <li>ddddd</li>
        <li>eeeee</li>
    </ul>
</body>
<style>
div.item{
    margin: 10px;
    width: 80px;
    height: 100px;
    background-color: #777;
}
div.main{
    background-color: #999;
    width: 600px;
    height: 400px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    /* justify-content: center; */
}


ul.nav {
    width: 600px;
    display: flex;
    flex-direction: row-reverse;
}
ul.nav li{
    width: 90px;
}
</style>

</html>